<template>
    <div>
        <!-- <h1>我是Home组件</h1> -->
        <router-link active-class="active" to="/home/news">News</router-link>
        <router-link active-class="active" to="/home/messages">Messages</router-link>
        <hr>
        <!-- <keep-alive include="MyNews">
          <router-view></router-view>
        </keep-alive> -->
        <keep-alive :include="['MyNews', 'MyMessages']">
          <router-view></router-view>
        </keep-alive>
    </div>
  </template>
  
  <script>
  export default {
    name: 'MyHome'
  }
  </script>